package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存预警记录对象 inventory_warning
 * 
 * @author ruoyi
 * @date 2025-06-16
 */
public class InventoryWarning extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预警ID */
    private Long warningId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private String productCode;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 预警类型（1：低于下限，2：高于上限） */
    @Excel(name = "预警类型", readConverterExp = "1=：低于下限，2：高于上限")
    private String warningType;

    /** 当前库存 */
    @Excel(name = "当前库存")
    private Long currentQuantity;

    /** 库存下限 */
    @Excel(name = "库存下限")
    private Long minStock;

    /** 库存上限 */
    @Excel(name = "库存上限")
    private Long maxStock;

    /** 预警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "预警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warningTime;

    /** 处理状态（0：未处理，1：已处理） */
    @Excel(name = "处理状态", readConverterExp = "0=：未处理，1：已处理")
    private String status;

    /** 处理备注 */
    @Excel(name = "处理备注")
    private String processRemark;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date processTime;

    /** 处理人 */
    @Excel(name = "处理人")
    private String processBy;

    public void setWarningId(Long warningId) 
    {
        this.warningId = warningId;
    }

    public Long getWarningId() 
    {
        return warningId;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setProductCode(String productCode) 
    {
        this.productCode = productCode;
    }

    public String getProductCode() 
    {
        return productCode;
    }

    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }

    public void setWarningType(String warningType) 
    {
        this.warningType = warningType;
    }

    public String getWarningType() 
    {
        return warningType;
    }

    public void setCurrentQuantity(Long currentQuantity) 
    {
        this.currentQuantity = currentQuantity;
    }

    public Long getCurrentQuantity() 
    {
        return currentQuantity;
    }

    public void setMinStock(Long minStock) 
    {
        this.minStock = minStock;
    }

    public Long getMinStock() 
    {
        return minStock;
    }

    public void setMaxStock(Long maxStock) 
    {
        this.maxStock = maxStock;
    }

    public Long getMaxStock() 
    {
        return maxStock;
    }

    public void setWarningTime(Date warningTime) 
    {
        this.warningTime = warningTime;
    }

    public Date getWarningTime() 
    {
        return warningTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setProcessRemark(String processRemark) 
    {
        this.processRemark = processRemark;
    }

    public String getProcessRemark() 
    {
        return processRemark;
    }

    public void setProcessTime(Date processTime) 
    {
        this.processTime = processTime;
    }

    public Date getProcessTime() 
    {
        return processTime;
    }

    public void setProcessBy(String processBy) 
    {
        this.processBy = processBy;
    }

    public String getProcessBy() 
    {
        return processBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("warningId", getWarningId())
            .append("productId", getProductId())
            .append("productCode", getProductCode())
            .append("productName", getProductName())
            .append("warningType", getWarningType())
            .append("currentQuantity", getCurrentQuantity())
            .append("minStock", getMinStock())
            .append("maxStock", getMaxStock())
            .append("warningTime", getWarningTime())
            .append("status", getStatus())
            .append("processRemark", getProcessRemark())
            .append("processTime", getProcessTime())
            .append("processBy", getProcessBy())
            .toString();
    }
}
